<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8" />
    <title>图书详情</title>
    <style>
        body {
            margin: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
            color: #e0f7fa;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 40px 20px;
        }

        h1 {
            font-size: 2.8em;
            color: #00fff7;
            text-shadow: 0 0 12px #00fff7;
            margin-bottom: 30px;
            text-align: center;
        }

        nav {
            margin-bottom: 40px;
        }

        nav a {
            color: #00fff7;
            font-weight: 600;
            margin: 0 14px;
            text-decoration: none;
            font-size: 1.1em;
            transition: color 0.3s ease;
        }

        nav a:hover {
            color: #ffffff;
            text-shadow: 0 0 10px #00fff7;
        }

        .card {
            background: rgba(255, 255, 255, 0.08);
            padding: 30px 40px;
            border-radius: 16px;
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.25);
            max-width: 700px;
            width: 100%;
            backdrop-filter: blur(10px);
            line-height: 1.6;
        }

        .card p {
            font-size: 1.2em;
            margin: 18px 0;
        }

        .card strong {
            color: #00fff7;
            text-shadow: 0 0 5px #00fff7;
            display: inline-block;
            width: 100px;
        }

        @media (max-width: 768px) {
            .card {
                padding: 20px 25px;
            }

            h1 {
                font-size: 2.2em;
            }

            nav a {
                margin: 0 10px;
                font-size: 1em;
            }
        }
    </style>
</head>
<body>
    <h1>图书详情</h1>
    <nav>
        <a href="/books">图书管理</a> |
        <a href="/">首页</a>
    </nav>
    <div class="card">
        <p><strong>标题:</strong> {{.Book.Title}}</p>
        <p><strong>作者:</strong> {{.Book.Author}}</p>
        <p><strong>出版社:</strong> {{.Book.Publisher}}</p>
        <p><strong>分类:</strong> {{.Book.Category.Name}}</p>
        <p><strong>出版日期:</strong> {{.Book.PublishedAt.Format "2006-01-02"}}</p>
        <p><strong>描述:</strong> {{.Book.Description}}</p>
    </div>
</body>
</html>
